From f9006b0b910ea6597b60f2b4caab1a5327d0d5f0 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 13 Aug 2008 18:06:07 +0000 Subject: [PATCH] Fix D103 garmins for wpt names < 6 chars. Test for isalnum() after testing for end of string. --- jeeps/gpsapp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jeeps/gpsapp.c b/jeeps/gpsapp.c index 651ed61e3..326fe2c07 100644 --- a/jeeps/gpsapp.c +++ b/jeeps/gpsapp.c @@ -124,12 +124,12 @@ void copy_char_array(UC **dst, char* src, int count, copycase mustupper) int ocount = count; do { UC sc = *src++; - if (!isalnum(sc)) continue; if (sc == 0) { while (count--) *d++ = ' '; break; } + if (!isalnum(sc)) continue; else *d++ = mustupper == UpperYes ? toupper(sc) : sc; } while (--count) ; *dst += ocount; -- 2.30.2